package com.sgcc.nfc.lock.domain.usecase

import com.sgcc.nfc.lock.core.network.NetworkResult
import com.sgcc.nfc.lock.domain.model.Room
import com.sgcc.nfc.lock.domain.repository.RoomRepository
import javax.inject.Inject

class GetRoomDetailUseCase @Inject constructor(
    private val repository: RoomRepository
) {
    suspend operator fun invoke(roomId: Long): NetworkResult<Room> = repository.getRoomDetail(roomId)
}
